<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
	<!-- Service -->
#for s in class.fields
	<bean id="${.s.name}" class="${class.attributes.services[.index]}">
		<property name="daoFactory" ref="daoFactory"></property>
		<property name="debug" value="true"></property>
	</bean>
#end
	
	<!-- ServiceFactory -->
	<bean id="serviceFactory" class="${class.package}.ServiceFactory">
#for s in class.fields
		<property name="${.s.name}" ref="${.s.name}"></property>
#end
	</bean>
	<!-- Action -->
#for a in class.attributes.actions
	<bean name="/action/${.a}s" class="${class.attributes.actionClasses[.index]}">
		<property name="serviceFactory" ref="serviceFactory"></property>
	</bean>
#end
</beans>
